package com.yohann.designPattern.bridge.phone;

import com.yohann.designPattern.bridge.brand.Brand;

/**
 * <p>
 * 手机抽象
 * </p>
 *
 * @author Yohann
 * @since 2021/2/7 13:53
 */
public abstract class Phone {
    /**
     * 组合品牌
     */
    private Brand brand;

    public Phone(Brand brand) {
        this.brand = brand;
    }

    public void call() {
        brand.call();
    }

    public void open() {
        brand.open();
    }

    public void close() {
        brand.close();
    }
}